{include file="/common/_meta"}
</head>
<body>
{include file="/common/top"}
<div class="main-container container-fluid">
	<div class="page-container">
		            <!-- Page Sidebar -->
       {include file="/common/list"}
        <!-- Page Content -->
        <div class="page-content">
            <!-- Page Breadcrumb -->
            <div class="page-breadcrumbs">
                <ul class="breadcrumb">
                   <li>
                        <a href="#">系统</a>
                    </li>
                    <li>
                        <a href="{:url('brand/lst')}">品牌管理</a>
                    </li>
                    <li class="active">添加品牌</li>
                </ul>
            </div>
            <!-- /Page Breadcrumb -->

            <!-- Page Body -->
            <div class="page-body">
                
                <div class="row">
                    <div class="col-lg-12 col-sm-12 col-xs-12">
                        <div class="widget">
                            <div class="widget-header bordered-bottom bordered-blue">
                                <span class="widget-caption">修改品牌</span>
                            </div>
                            <div class="widget-body">
                                <div id="horizontal-form">
                                    <form class="form-horizontal" role="form" action="" method="post" enctype="multipart/form-data">
                                    	<input type="hidden" name="brand_id" value="{$brandedit.brand_id}">
                                        <div class="form-group">
                                            <label for="username" class="col-sm-2 control-label no-padding-right">品牌名称</label>
                                            <div class="col-sm-6">
                                                <input class="form-control" id="username" placeholder="" name="brand_name" type="text" value="{$brandedit.brand_name}">
                                            </div>
                                            <p class="help-block col-sm-4 red">* 必填</p>
                                        </div>

                                        <div class="form-group">
                                            <label for="username" class="col-sm-2 control-label no-padding-right">品牌地址</label>
                                            <div class="col-sm-6">
                                                <input class="form-control" id="username" placeholder="" name="brand_url" type="text" value="{$brandedit.brand_url}">
                                            </div>
                                            <p class="help-block col-sm-4 red">* 必填</p>
                                        </div>

                                        <div class="form-group">
                                            <label for="username" class="col-sm-2 control-label no-padding-right">品牌logo</label>
                                            <div class="col-sm-6">
                                                <input id="username" placeholder="" name="brand_img" type="file">
                                                <input type="button" name="brand_img" {if condition="$brandedit['brand_img'] neq ''" } value="删除" {/if}>
                                                {if condition="$brandedit['brand_img'] neq ''"}
                                                <img src="__UPLOADS__/{$brandedit.brand_img}" height="30">
                                                {else/}
                                                暂无图片
                                                {/if}
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label for="username" class="col-sm-2 control-label no-padding-right">品牌描述</label>
                                            <div class="col-sm-6">
                                                <textarea class="form-control" name="brand_description">{$brandedit.brand_description}</textarea>
                                            </div>

                                        </div>

                                        <div class="form-group">
                                            <label for="username" class="col-sm-2 control-label no-padding-right">品牌状态</label>
                                            <div class="col-sm-6">
                                                <div class="radio" style="float: left; padding-right: 10px;">
                                                    <label>
                                                        <input name="brand_status" class="colored-blue" value="1" {if condition="$brandedit['brand_status'] eq 1" } checked="checked" {/if} type="radio">
                                                        <span class="text">显示</span>
                                                    </label>
                                                </div>
                                                <div class="radio">
                                                    <label>
                                                        <input name="brand_status" class="colored-blue" value="0" {if condition="$brandedit['brand_status'] eq 0"} checked="checked" {/if} type="radio">
                                                        <span class="text">隐藏</span>
                                                    </label>
                                                </div>

                                            </div>

                                        </div>

                                       
                                        <div class="form-group">
                                            <div class="col-sm-offset-2 col-sm-10">
                                                <button type="submit" class="btn btn-default">保存信息</button>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
            <!-- /Page Body -->
        </div>
        <!-- /Page Content -->
	</div>	
</div>

{include file="common/_footer"}
</body>
</html>
